import java.io.Closeable;
import java.io.FileOutputStream;
import java.io.IOException;

public class my_output implements Closeable {
  FileOutputStream fos;

  public my_output(FileOutputStream fos) { this.fos = fos; }

  public void write(int b) throws IOException { fos.write(b); }

  public void close() throws IOException {
    if (fos != null)
      fos.close();
  }
}